package com.wwwzh.himalayafm.fragment.subfragment;

import android.graphics.Canvas;
import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.RecyclerView.ItemDecoration;
import android.support.v7.widget.RecyclerView.State;
import android.view.View;

public class MyItemDecorations extends ItemDecoration {
    private int dis;

    public MyItemDecorations(int dis) {
        this.dis = dis;
    }

    @Override
    public void getItemOffsets(Rect paramRect, View paramView, RecyclerView paramRecyclerView, State paramState) {
        super.getItemOffsets(paramRect, paramView, paramRecyclerView, paramState);
        paramRect.set(0, 0, 0, dis);
    }
    @Override
    public void onDraw(Canvas paramCanvas, RecyclerView paramRecyclerView, State paramState) {

    }
    @Override
    public void onDrawOver(Canvas paramCanvas, RecyclerView paramRecyclerView, State paramState) {
        super.onDrawOver(paramCanvas, paramRecyclerView, paramState);
    }
}


